Class symantec.itools.awt.shape.Ellipse
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class symantec.itools.awt.shape.Ellipse

Object
   |
   +----Component
           |
           +----Shape
                   |
                   +----symantec.itools.awt.shape.Ellipse

public class Ellipse
extends Shape
This class forms the Ellipse shape component.

Version:
1.1, July 28, 1997
Author:
Symantec
See Also:
Circle

Constructor Index

 o symantec.itools.awt.shape.Ellipse()
Constructs a default Ellipse.

Method Index

 o contains(int, int)
Checks whether this component "contains" the specified (x, y) location, where x and y are defined to be relative to the coordinate system of this component.
 o paint(Graphics)
Paints the ellipse using the given graphics context.

Constructors

 o Ellipse
public Ellipse()
Constructs a default Ellipse.

Methods

 o contains
public boolean contains(int x,
                        int y)
Checks whether this component "contains" the specified (x, y) location, where x and y are defined to be relative to the coordinate system of this component.

Parameters:
x - the x coordinate
y - the y coordinate
Overrides:
contains in class Component
See Also:
getComponentAt
 o paint
public void paint(Graphics g)
Paints the ellipse using the given graphics context. This is a standard Java AWT method which typically gets called by the AWT to handle painting this component. It paints this component using the given graphics context. The graphics context clipping region is set to the bounding rectangle of this component and its <0,0> coordinate is this component's top-left corner.

Parameters:
g - the graphics context used for painting
Overrides:
paint in class Shape
See Also:
repaint, update

All Packages  Class Hierarchy  This Package  Previous  Next  Index